package com.yokit.c2c.mapper;

import com.yokit.c2c.pojo.Goods;

import java.util.List;

/**
 * @author fengzeng
 */
public interface GoodsMapper {
  int deleteByPrimaryKey(Integer goodsId);

  int insert(Goods record);

  int insertSelective(Goods record);

  Goods selectByPrimaryKey(Integer goodsId);

  int updateByPrimaryKeySelective(Goods record);

  int updateByPrimaryKey(Goods record);

  List<Goods> select5HotGoods();

  List<Goods> selectAll();

  List<Goods> selectByCatId(Integer catId);

  List<Goods> selectByGoodsName(String goodsName);

  List<Goods> selectByShopId(Integer shopId);
}